package com.woniu.payback_font.entity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@Api(value="用户登录注册 实体类表 ")
public class User implements Serializable {
    @ApiModelProperty(value = "id",name = "uId")
    private Integer uId;

    @ApiModelProperty(value = "注册自动生成，用户的唯一标识",name = "uUid")
    private String uUid;

    @ApiModelProperty(value = "用户名",name = "uName")
    //@Pattern(message = "用户名只能为以字母开头,5~16个字母数字组成",regexp = "/^[a-zA-Z][a-zA-Z0-9]{5,15}$/")
    private String uName;//JSR303验证（emmm暂时不加）

    @ApiModelProperty(value = "用户输入密码",name = "uPassword")
    private String uPassword;

    @ApiModelProperty(value = "加密后的密码",name = "uCodePass")
    private String uCodePass;

    @ApiModelProperty(value = "盐值，采用uuid",name = "uSaltValue")
    private String uSaltValue;

    @ApiModelProperty(value = "加密次数，次数为1235（不应该写入接口文档）",name = "uCount")
    private Integer uCount;

    @ApiModelProperty(value = "手机号码",name = "uMobile")
    private String uMobile;

    @ApiModelProperty(value = "头像",name = "uImage")
    private String uImage;

    @ApiModelProperty(value = "账户状态  1可用0异常  默认1",name = "uStatus")
    private Integer uStatus;

    @ApiModelProperty(value = "用户邮箱  默认1",name = "uEmail")
    private String uEmail;

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getuUid() {
        return uUid;
    }

    public void setuUid(String uUid) {
        this.uUid = uUid;
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }

    public String getuPassword() {
        return uPassword;
    }

    public void setuPassword(String uPassword) {
        this.uPassword = uPassword;
    }

    public String getuCodePass() {
        return uCodePass;
    }

    public void setuCodePass(String uCodePass) {
        this.uCodePass = uCodePass;
    }

    public String getuSaltValue() {
        return uSaltValue;
    }

    public void setuSaltValue(String uSaltValue) {
        this.uSaltValue = uSaltValue;
    }

    public Integer getuCount() {
        return uCount;
    }

    public void setuCount(Integer uCount) {
        this.uCount = uCount;
    }

    public String getuMobile() {
        return uMobile;
    }

    public void setuMobile(String uMobile) {
        this.uMobile = uMobile;
    }

    public String getuImage() {
        return uImage;
    }

    public void setuImage(String uImage) {
        this.uImage = uImage;
    }

    public Integer getuStatus() {
        return uStatus;
    }

    public void setuStatus(Integer uStatus) {
        this.uStatus = uStatus;
    }

    public String getuEmail() {
        return uEmail;
    }

    public void setuEmail(String uEmail) {
        this.uEmail = uEmail;
    }

    @Override
    public String toString() {
        return "User{" +
                "uId=" + uId +
                ", uUid='" + uUid + '\'' +
                ", uName='" + uName + '\'' +
                ", uPassword='" + uPassword + '\'' +
                ", uCodePass='" + uCodePass + '\'' +
                ", uSaltValue='" + uSaltValue + '\'' +
                ", uCount=" + uCount +
                ", uMobile='" + uMobile + '\'' +
                ", uImage='" + uImage + '\'' +
                ", uStatus=" + uStatus +
                ", uEmail='" + uEmail + '\'' +
                '}';
    }
}